Link .mli files corresponding to autorgenerated .ml files into builddir
authorHilko Bengen <bengen@debian.org>
Mon, 13 Jan 2020 19:13:30 +0000 (20:13 +0100)
committerHilko Bengen <bengen@debian.org>
Tue, 31 Aug 2021 15:02:19 +0000 (16:02 +0100)
This avoids build failures in separate builds such as this one:

,----
| ocamlfind ocamlc -package str,unix -I . -a guestfs_config.cmo stringMap.cmo stringSet.cmo std_utils.cmo -o mlstdutils.cma
| ar cr libmlstdutils.a libmlstdutils_a-dummy.o
| ranlib libmlstdutils.a
| File "_none_", line 1:
| Error: Files std_utils.cmo and guestfs_config.cmo
|        make inconsistent assumptions over interface Guestfs_config
| make[4]: *** [Makefile:2580: mlstdutils.cma] Error 2
`----

Gbp-Pq: Name 0018-Link-.mli-files-corresponding-to-autorgenerated-.ml-.patch

configure.ac

index 99ac47099a4f0e69158c51b17608bcbe380ed44d..ddc2cd9120923d91e41bfbd0a75e758366a07d98 100644 (file)
@@ -355,6 +355,9 @@ AC_CONFIG_FILES([Makefile
                  tools/Makefile
                  website/index.html])
 
+AC_CONFIG_LINKS([common/mlstdutils/guestfs_config.mli:common/mlstdutils/guestfs_config.mli
+                 daemon/daemon_config.mli:daemon/daemon_config.mli])
+
 AC_OUTPUT
 
 dnl Produce summary.